
import Mock from "mockjs";
import { Local } from "../utils";
class cooperateEntity {
  fieldsSession = Local('cooperate-fields', Mock.mock([{
      id:"1",
      insurance_company_id:"aa保险公司",
      upstream_id:"bb保险公司",
      type:"财险",
      status:"1",
      create_time:"2023-6-6 10:32:55",
      update_time:"2023-6-6 10:32:55"
  },{
    id:"2",
    insurance_company_id:"aa保险公司",
    upstream_id:"bb保险公司",
    type:"寿险",
    status:"0",
    create_time:"2023-6-6 10:32:55",
    update_time:"2023-6-6 10:32:55"
}
  ]))
  get fields() {
    return this.fieldsSession.get();
  }
  set fields(obj: any) {
    this.fieldsSession.set(obj)
  }
  findAll() {
    return this.fields;
  }
}

export default cooperateEntity;